home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / xml / gnome / xslt / common / theme.xsl
Encoding:
Extensible Markup Language  |  2009-03-17  |  9.4 KB  |  259 lines

  1. <?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
  2. <!--
  3. This program is free software; you can redistribute it and/or modify it under
  4. the terms of the GNU Lesser General Public License as published by the Free
  5. Software Foundation; either version 2 of the License, or (at your option) any
  6. later version.
  7.  
  8. This program is distributed in the hope that it will be useful, but WITHOUT
  9. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  10. FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  11. details.
  12.  
  13. You should have received a copy of the GNU Lesser General Public License
  14. along with this program; see the file COPYING.LGPL.  If not, write to the
  15. Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  16. 02111-1307, USA.
  17. -->
  18.  
  19. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  20.                 version="1.0">
  21.  
  22. <!--!!==========================================================================
  23. Themes
  24. :Requires: gettext
  25.  
  26. This module provides a common interface to specify custom colors and icons
  27. for transformations to presentation-oreinted formats.  This allows similar
  28. output for different types of input documents.  Theme information may either
  29. be passed in as XSLT parameters or specified in a theme file.
  30.  
  31. REMARK: Describe the format of theme files.
  32. -->
  33.  
  34.  
  35. <!-- == Colors ============================================================= -->
  36.  
  37. <!--@@==========================================================================
  38. theme.color.background
  39. The background color
  40.  
  41. This parameter specifies the default background color.
  42. -->
  43. <xsl:param name="theme.color.background" select="'#ffffff'"/>
  44.  
  45. <!--@@==========================================================================
  46. theme.color.link
  47. The color of links
  48.  
  49. If set, this parameter specifies the color for unvisited links.
  50. -->
  51. <xsl:param name="theme.color.link" select="'#1f609f'"/>
  52.  
  53. <!--@@==========================================================================
  54. theme.color.link_visited
  55. The color of visited links
  56.  
  57. This parameter specifies the color for visited links.
  58. -->
  59. <xsl:param name="theme.color.link_visited" select="'#9f1f6f'"/>
  60.  
  61. <!--@@==========================================================================
  62. theme.color.text
  63. The normal text color
  64.  
  65. This parameter specifies the default color for normal text.
  66. -->
  67. <xsl:param name="theme.color.text" select="'#ffffff'"/>
  68.  
  69. <!--@@==========================================================================
  70. theme.color.text_light
  71. The light text color
  72.  
  73. This parameter specifies the color for light text.  The light text
  74. color is used to make bold headings and certain parenthetical text less intense.
  75. -->
  76. <xsl:param name="theme.color.text_light" select="'#3f3f3f'"/>
  77.  
  78. <!--@@==========================================================================
  79. theme.color.blue_background
  80. The blue background color
  81.  
  82. This parameter specifies the blue background color.  The blue
  83. background color may be used by certain types of block elements.
  84. -->
  85. <xsl:param name="theme.color.blue_background" select="'#f0f9ff'"/>
  86.  
  87. <!--@@==========================================================================
  88. theme.color.blue_border
  89. The blue border color
  90.  
  91. This parameter specifies the blue border color.  The blue
  92. border color may be used by certain types of block elements.
  93. -->
  94. <xsl:param name="theme.color.blue_border" select="'#c0c9ff'"/>
  95.  
  96. <!--@@==========================================================================
  97. theme.color.gray_background
  98. The gray background color
  99.  
  100. This parameter specifies the gray background color.  The gray
  101. background color may be used by certain types of block elements.
  102. -->
  103. <xsl:param name="theme.color.gray_background" select="'#f9f9f6'"/>
  104.  
  105. <!--@@==========================================================================
  106. theme.color.gray_border
  107. The gray border color
  108.  
  109. This parameter specifies the gray border color.  The gray
  110. border color may be used by certain types of block elements.
  111. -->
  112. <xsl:param name="theme.color.gray_border" select="'#e0e0df'"/>
  113.  
  114. <!--@@==========================================================================
  115. theme.color.red_background
  116. The red background color
  117.  
  118. This parameter specifies the red background color.  The red
  119. background color may be used by certain types of block elements.
  120. -->
  121. <xsl:param name="theme.color.red_background" select="'#fff0f0'"/>
  122.  
  123. <!--@@==========================================================================
  124. theme.color.red_border
  125. The red border color
  126.  
  127. This parameter specifies the red border color.  The red
  128. border color may be used by certain types of block elements.
  129. -->
  130. <xsl:param name="theme.color.red_border" select="'#ffc0c0'"/>
  131.  
  132. <!--@@==========================================================================
  133. theme.color.yellow_background
  134. The yellow background color
  135.  
  136. This parameter specifies the yellow background color.  The yellow
  137. background color may be used by certain types of block elements.
  138. -->
  139. <xsl:param name="theme.color.yellow_background" select="'#fffff0'"/>
  140.  
  141. <!--@@==========================================================================
  142. theme.color.yellow_border
  143. The yellow border color
  144.  
  145. This parameter specifies the yellow border color.  The yellow
  146. border color may be used by certain types of block elements.
  147. -->
  148. <xsl:param name="theme.color.yellow_border" select="'#ffffc0'"/>
  149.  
  150.  
  151. <!-- == Admonition Icons =================================================== -->
  152.  
  153. <!--@@==========================================================================
  154. theme.icon.admon.path
  155. The default path to the admonition icons
  156.  
  157. This parameter specifies a default path where admonition icons can be found.
  158. This is only a default path.  It has no effect on admonition icons for which
  159. the corresponding parameter has been specified explicitly.
  160. -->
  161. <xsl:param name="theme.icon.admon.path" select="''"/>
  162.  
  163. <!--@@==========================================================================
  164. theme.icon.admon.size
  165. The size of the admonition icons
  166.  
  167. This parameter specifies the size of the icons given in @{theme.icon.admon.bug},
  168. @{theme.icon.admon.caution}, @{theme.icon.admon.important}, @{theme.icon.admon.note},
  169. @{theme.icon.admon.tip}, and @{theme.icon.admon.warning}.  The value of this parameter
  170. should be a single integer specifying both the width and the height in pixels.  Icon
  171. sizes are assumed to be square.
  172. -->
  173. <xsl:param name="theme.icon.admon.size" select="48"/>
  174.  
  175. <!--@@==========================================================================
  176. theme.icon.admon.bug
  177. The path for the bug admonition icon
  178.  
  179. This parameter specifies the icon used for bug admonitions.
  180. -->
  181. <xsl:param name="theme.icon.admon.bug"
  182.            select="concat($theme.icon.admon.path, 'admon-bug.png')"/>
  183.  
  184. <!--@@==========================================================================
  185. theme.icon.admon.caution
  186. The path for the caution admonition icon
  187.  
  188. This parameter specifies the icon used for caution admonitions.
  189. -->
  190. <xsl:param name="theme.icon.admon.caution"
  191.            select="concat($theme.icon.admon.path, 'admon-caution.png')"/>
  192.  
  193. <!--@@==========================================================================
  194. theme.icon.admon.important
  195. The path for the important admonition icon
  196.  
  197. This parameter specifies the icon used for important admonitions.
  198. -->
  199. <xsl:param name="theme.icon.admon.important"
  200.            select="concat($theme.icon.admon.path, 'admon-important.png')"/>
  201.  
  202. <!--@@==========================================================================
  203. theme.icon.admon.note
  204. The path for the note admonition icon
  205.  
  206. This parameter specifies the icon used for note admonitions.
  207. -->
  208. <xsl:param name="theme.icon.admon.note"
  209.            select="concat($theme.icon.admon.path, 'admon-note.png')"/>
  210.  
  211. <!--@@==========================================================================
  212. theme.icon.admon.tip
  213. The path for the tip admonition icon
  214.  
  215. This parameter specifies the icon used for tip admonitions.
  216. -->
  217. <xsl:param name="theme.icon.admon.tip"
  218.            select="concat($theme.icon.admon.path, 'admon-tip.png')"/>
  219.  
  220. <!--@@==========================================================================
  221. theme.icon.admon.warning
  222. The path for the warning admonition icon
  223.  
  224. This parameter specifies the icon used for warning admonitions.
  225. -->
  226. <xsl:param name="theme.icon.admon.warning"
  227.            select="concat($theme.icon.admon.path, 'admon-warning.png')"/>
  228.  
  229.  
  230. <!-- == Watermarks ========================================================= -->
  231.  
  232. <!--@@==========================================================================
  233. theme.watermark.path
  234. The default path to the watermark graphics
  235.  
  236. This parameter specifies a default path where watermark graphics can be found.
  237. This is only a default path.  It has no effect on watermark graphics for which
  238. the corresponding parameter has been specified explicitly.
  239. -->
  240. <xsl:param name="theme.watermark.path" select="''"/>
  241.  
  242. <!--@@==========================================================================
  243. theme.watermark.blockquote
  244. The path for the blockquote watermark graphic
  245.  
  246. This parameter specifies the graphic file used for blockquote watermarks.  Note
  247. that the default graphic is translatable.  If you set this parameter, you should
  248. ensure that your graphic uses a suitable quote character for the language your
  249. document is written in.
  250. -->
  251. <xsl:param name="theme.watermark.blockquote">
  252.   <xsl:value-of select="$theme.watermark.path"/>
  253.   <xsl:call-template name="l10n.gettext">
  254.     <xsl:with-param name="msgid" select="'watermark-blockquote-201C.png'"/>
  255.   </xsl:call-template>
  256. </xsl:param>
  257.  
  258. </xsl:stylesheet>
  259.